GrapeCity MultiRow Windows Forms Documentation
CreateGridTemplateForColumnMode(IEnumerable<Cell>,Int32,AutoGenerateGridTemplateStyles) Method


A Cell collection that is filled to the standard left-to-right layout matrix template.
A System.Int32 that indicates the maximum rows height.
One of the AutoGenerateGridTemplateStyles values that indicate which elements are generated in the template.
Creates a standard left-to-right layout matrix Template with the specified cells.
Syntax
Public Overloads Shared Function CreateGridTemplateForColumnMode( _
   ByVal cells As IEnumerable(Of Cell), _
   ByVal rowsMaxHeight As Integer, _
   ByVal autoGenerateGridTemplateStyles As AutoGenerateGridTemplateStyles _
) As Template
Dim cells As IEnumerable(Of Cell)
Dim rowsMaxHeight As Integer
Dim autoGenerateGridTemplateStyles As AutoGenerateGridTemplateStyles
Dim value As Template
 
value = Template.CreateGridTemplateForColumnMode(cells, rowsMaxHeight, autoGenerateGridTemplateStyles)
public static Template CreateGridTemplateForColumnMode( 
   IEnumerable<Cell> cells,
   int rowsMaxHeight,
   AutoGenerateGridTemplateStyles autoGenerateGridTemplateStyles
)

Parameters

cells
A Cell collection that is filled to the standard left-to-right layout matrix template.
rowsMaxHeight
A System.Int32 that indicates the maximum rows height.
autoGenerateGridTemplateStyles
One of the AutoGenerateGridTemplateStyles values that indicate which elements are generated in the template.

Return Value

A Template that represents a standard left-to-right layout matrix Template.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionThe cells is a null reference (Nothing in Visual Basic).
System.ArgumentOutOfRangeExceptionThe rowsMaxHeight is less than or equal to 0.
System.ComponentModel.InvalidEnumArgumentExceptionThe autoGenerateGridTemplateStyles value is not a valid AutoGenerateGridTemplateStyles value.
System.ArgumentException

There exists one cell in cells that is a null reference (Nothing in Visual Basic).

-or-

There exists one cell in cells that has been added to another Section or Template.

-or-

No cell exists in cells.

System.InvalidOperationExceptionThere exists one cell in cells that cannot be added to the Row section.
Remarks
You can set autoGenerateGridTemplateStyles to indicate which elements should be generated when using CreateGridTemplateForColumnMode(IEnumerable<Cell>,Int32).
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Template Class
Template Members
Overload List
CreateGridTemplateForColumnMode(Int32) Method
CreateGridTemplateForColumnMode(Int32,Int32,Int32) Method
CreateGridTemplateForColumnMode(Int32,Int32,Int32,Int32) Method
CreateGridTemplateForColumnMode(Int32,Int32,Int32,Int32,AutoGenerateGridTemplateStyles) Method
CreateGridTemplateForColumnMode(Int32,Int32,Int32,Int32,AutoGenerateGridTemplateStyles,Int32) Method
CreateGridTemplateForColumnMode(IEnumerable<Cell>) Method
CreateGridTemplateForColumnMode(IEnumerable<Cell>,Int32) Method
CreateGridTemplateForColumnMode(IEnumerable<Cell>,Int32,AutoGenerateGridTemplateStyles,Int32) Method

 

 


Copyright © GrapeCity, inc. All rights reserved.